import { ArticleListItem, api_List } from '@/api/utls'
import { useEffect, useState } from 'react'

export function useList() {
  const [list, setList] = useState<ArticleListItem[]>([])
  useEffect(() => {
    async function getList(params: any) {
      const { data } = await api_List(params)
      setList(data.data.data)
    }
    getList({})
  }, [])
  return list
}
